package com.sumainfor.zuul.service;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.zuul.dao.SysDeptEvaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 * 查询服务中心
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-05-08 15:21
 **/
@Service
public class SysDeptEvaService implements Serializable {

    @Autowired
    SysDeptEvaMapper sysDeptEvaMapper;
    /**
    * <p>
    * 所有的服务中心下拉框
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    public JsonResult getDeptList(){
        JsonResult result = new JsonResult();
        return result.put(sysDeptEvaMapper.getDeptList());
    }

}
